<div id="mmnew">
	<h2><?php __('Manualmoves NEW');?></h2>
	<table cellpadding="0" cellspacing="0" width="100%">
	<tr>
			<th width="100">&nbsp;Batch</th>
			<th width="120">&nbsp;Account</th>
			<th width="250">&nbsp;MAC</th>
			<th width="250">&nbsp;Added date</th>
			<th>&nbsp;Status</th>
			<th width="200">&nbsp;Actions</th>
	</tr>
	<?php
	$i = 0;
	$counter = 0;
	foreach ($mmnew as $new):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
		else {
			$class = ' class="altrow2"';
		}
		$div = "field".$counter;
	?>
	<tr<?php echo $class;?>>
	    <td>&nbsp;<?php echo $new['rhm']['run_id']; ?></td>
		<td>&nbsp;<?php echo $new['customer']['account_number']; ?></td>
		<td>&nbsp;<?php echo $new['mac']['mac']; ?></td>
		<td>&nbsp;<?php echo $new['manualmove']['date']; ?></td>
		<td>&nbsp;<?php echo $new['status']['statusdetail']; ?></td>
		<td><div id="<?php echo $div; ?>" name = "<?php echo $div; ?>">&nbsp;
		  <?php 
		  echo $ajax->link('Process', array('controller' => 'manualmoves', 'action' => 'solve', '?' => array('macid' => $new['mac']['id'], 'runid' =>  $new['rhm']['run_id'], 'div' => $div, 'mmid' => $new['manualmove']['id'])), array('update' => $div));
		  echo " - "; 
		  echo $ajax->link('Skip', array('controller' => 'manualmoves', 'action' => 'skip', '?' => array('macid' =>  $new['mac']['id'], 'div' => $div, 'mmid' => $new['manualmove']['id'])), array('update' => $div));
		  ?>
		</td>
	</tr>
	<?php $counter++; ?>
	<?php endforeach; ?>
	</table>
	<?php if($counter != 0){ ?>
	<form id="mmnew">
      <?php echo $ajax->submit('PREPARE all NEW Manual Moves for letter delivery', array('url'=> array('controller'=>'manualmoves', 'action'=>'mmnew'), 'update' => 'mmnew')); ?>
    </form>
    <?php } ?>
	<br />
	</div>